import getlink from "@/api/getapi.js"
let ShortM = {
    state:{
        short:""
    },
    mutations:{
        UPSDATA(state,payload){
            state.short=payload
        }
    },
    actions:{
        LINK_S_DATA(conshort,payload){
            // console.log(context)
            getlink(payload).then((ok)=>{
                console.log(ok.data.short,"short")
                conshort.commit("UPSDATA",ok.data.short)
            }).catch((err)=>{
                console.log(err)
            })
        }
    }
}

export default ShortM;

 
